
package com.tools.cleanmaster.model.db;

import com.tools.cleanmaster.model.db.DatabaseUpdatePuller.DatabaseUpdatePullerItem;



public class DatabaseUpdateConstants {

    public final static String DB_ID_TRASH_DB = "oversea_trash_db";


    public final static String DB_ID_TRASH_WHITELIST = "oversea_trash_whitelist";
    public final static String DB_NAME_TRASH_WHITELIST = "oversea_trash_whitelist.txt";

    /**
     * query server every 2 hours.
     */
    public final static String[] DB_IDS_1 = new String[] {
            DB_ID_TRASH_WHITELIST
    };

    /**
     * query server every 1 day.
     */
    public final static String[] DB_IDS_2 = new String[] {
            DB_ID_TRASH_DB
    };

    public final static DatabaseUpdatePullerItem creatDatabaseUpdateItem(final String dbID) {
        if(DB_ID_TRASH_WHITELIST.equals(dbID)){
            return new TrashWhiteListItem();
        }
        return null;
    }
}
